package webwinkelapp;

/**
 * This class represents a Boek
 * @author Rutger Broerze en Stefan Blok
 */
public class Boek extends Product {
    private String name;
    private String description;
    private String author;
    private String ISBN_number;
    private double price;
    
    public Boek()
    {
        this ("", "", "", "", 0);
    }
    
    public Boek(String name, String description, String author, String ISBN_number, double price)
    {
        this.name = name;
        this.description = description;
        this.author = author;
        this.ISBN_number = ISBN_number;
        this.price = price;
    }

    /**
     * Returns a printable string of the details of a specific Boek
     * @return A String with printable Boek details
     */
    @Override
    public String toString()
    {
        String str =
                "Naam: " + name + "\n"
              + "Omschrijving: " + description + "\n"
              + "Auteur: " + author + "\n"
              + "ISBN nummer: " + ISBN_number + "\n"
              + "Prijs: " + price + "\n"; 
        
        return str;
    }
    
    /**
     * Gets the name
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * Sets the name
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * Get description
     * @return the description
     */
    public String getDescription() {
        return description;
    }

    /**
     * Sets description
     * @param description the description to set
     */
    public void setDescription(String description) {
        this.description = description;
    }

    /**
     * Gets the author
     * @return the author
     */
    public String getAuthor() {
        return author;
    }

    /**
     * Sets the author
     * @param author the author to set
     */
    public void setAuthor(String author) {
        this.author = author;
    }

    /**
     * Gets the ISBN_number
     * @return the ISBN_number
     */
    public String getISBN_number() {
        return ISBN_number;
    }

    /**
     * Sets the ISBN_number
     * @param ISBN_number the ISBN_number to set
     */
    public void setISBN_number(String ISBN_number) {
        this.ISBN_number = ISBN_number;
    }

    /**
     * Gets the price
     * @return the price
     */
    public double getPrice() {
        return price;
    }

    /**
     * Sets the price
     * @param price the price to set
     */
    public void setPrice(double price) {
        this.price = price;
    }
}
